import 'package:json_annotation/json_annotation.dart';

part 'bookmenu.g.dart';

@JsonSerializable()
class BookMenu {
  int id;
  int parentid;
  String name;
  int level;
  bool ischecked;

  BookMenu({this.id, this.parentid, this.name, this.level,this.ischecked});

 //反序列化
  factory BookMenu.fromJson(Map<String, dynamic> json) => _$BookMenuFromJson(json);
//序列化
  Map<String, dynamic> toJson() => _$BookMenuToJson(this);
}